import request from '@/utils/request'

// 查询友情链接列表
export function listBlogroll (query) {
  return request({
    url: '/cms/blogroll/list',
    method: 'get',
    params: query,
    // headers: {
    //   isToken: false
    // },
  })
}

// 查询友情链接详细
export function getBlogroll (id) {
  return request({
    url: '/cms/blogroll/' + id,
    method: 'get'
  })
}

// 新增友情链接
export function addBlogroll (data) {
  return request({
    url: '/cms/blogroll',
    method: 'post',
    data: data
  })
}

// 修改友情链接
export function updateBlogroll (data) {
  return request({
    url: '/cms/blogroll',
    method: 'put',
    data: data
  })
}

// 删除友情链接
export function delBlogroll (id) {
  return request({
    url: '/cms/blogroll/' + id,
    method: 'delete'
  })
}
